/**
 * 
 * @author Hyuksoo Seo
 * created Oct 15, 2008
 * copyright 2008 by hs2393@columbia.edu
 */
package edu.columbia.ubms.ejb;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

@Entity
@Table(name="blogbox")
/*
@SequenceGenerator(name = "mainpage_sequence", sequenceName = "mainpage_id_seq")
@TableGenerator(  name="bmainpage_id", table="primary_keys", pkColumnName="key", pkColumnValue="mainpage",
                valueColumnName="value")
*/                 
public class BlogBoxEntityBean implements Serializable {
     /**
	 * 
	 */
	
	private static final long serialVersionUID = 3L;

	private int blogboxId;
	private int userId;
	private String blogboxName;
	private String blogboxTag;
	private char blogboxShare;
	
	public BlogBoxEntityBean() {
		super();
	};
	
	public BlogBoxEntityBean(int userId, String blogboxName,
			String bookmarkTag, char blogboxShare) {
		super();
		this.userId = userId;
		this.blogboxName = blogboxName;
		this.blogboxTag = bookmarkTag;
		this.blogboxShare = blogboxShare;
	}

	@Override
	public String toString() {

			return "Blog Box : " + getBlogboxId() + " UserId " + getUserId() + " BloBoxName "
							+ getBlogboxName() + " BlogBoxTag " + getBlogboxTag()
							+ " BlogBoxShare " + getBlogboxShare();
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public int getBlogboxId() {
		return blogboxId;
	}

	public void setBlogboxId(int blogboxId) {
		this.blogboxId = blogboxId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getBlogboxName() {
		return blogboxName;
	}

	public void setBlogboxName(String blogboxName) {
		this.blogboxName = blogboxName;
	}

	public String getBlogboxTag() {
		return blogboxTag;
	}

	public void setBlogboxTag(String bookmarkTag) {
		this.blogboxTag = bookmarkTag;
	}

	public char getBlogboxShare() {
		return blogboxShare;
	}

	public void setBlogboxShare(char blogboxShare) {
		this.blogboxShare = blogboxShare;
	}
}
